<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('Member/solist')}">会员列表</a></li>
			<li><a href="{:url('Member/add')}">会员添加</a></li>
		</ul>
        <form class="well form-inline margin-top-20" method="post" action="{:url('Member/solist')}">
            <input type="text" class="form-control" name="user_login" style="width: 120px;" value="{:input('request.keyword')}" placeholder="手机号/昵称">
            时间:
            <input type="text" class="form-control js-bootstrap-date" name="start_time" id="start_time" value="{:input('request.start_time')}" style="width: 140px;" autocomplete="off">-
            <input type="text" class="form-control js-bootstrap-date" name="end_time" id="end_time" value="{:input('request.end_time')}" style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('Member/solist')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
                                        <th>所属店铺</th>
					<th>昵称</th>
					<th>头像</th>
					<th>手机号</th>
                                        <th>余额</th>
                                        <th>等级</th>
                                        <th>积分</th>
                                        <th>拥有卡种</th>
					<th>地址</th>
					<th>状态</th>
                                        <th>时间</th>
                                        <th>操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="vo">
				<tr>  
                                    <td>{$vo.shop_name}</td>
                                    <td>{$vo.nick_name}</td>
                                    <td><img src="__ROOT__/upload/{$vo.avatar}" hight="50" width="50" /></td>
                                    <td>{$vo.mobile}</td>
                                    <td><a href="{:url('Member/moneylog',array('m_guid'=>$vo['m_guid']))}">{$vo.money}</a></td>
                                    <td><a href="{:url('Member/paylevelog',array('m_guid'=>$vo['m_guid']))}">{$vo.name}</a></td>
                                    <td><a href="{:url('Member/integralog',array('m_guid'=>$vo['m_guid']))}">{$vo.m_integral}</a></td>
                                    <td><a href="{:url('Member/ownmebcard',array('m_guid'=>$vo['m_guid']))}">查询</a></td>
                                    <td>{$vo.address}</td>
                                    <td>
                                        <if condition="$vo['status'] eq 1">
                                                <a href="{:url('member/ban',array('id'=>$vo['m_guid']))}" class="js-ajax-dialog-btn" data-msg="你确定将会员冻结吗?">正常</a>
                                        <else />
                                                <a href="{:url('member/cancelban',array('id'=>$vo['m_guid']))}" class="js-ajax-dialog-btn" data-msg="你确定将会员恢复正常吗?">冻结</a>
                                        </if>
                                    </td>
                                    <td>{:date('Y-m-d H:i:s',$vo['c_time'])}</td>
                                    <td>
                                        <!--<a href="{:url('Member/memdelete',array('nav_id'=>$vo['m_guid']))}">删除</a>-->
                                        <a href="{:url('Member/memuplist',array('nav_id'=>$vo['m_guid']))}">修改</a>
                                    </td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>